from flask import Flask
from flask import request
import json
from esoper import  Esoper;
app=Flask(__name__)
es=Esoper();
@app.route("/")
def hello():
    return "Hello word"
@app.route("/searchtag")
def searchByTag():
    tag=request.args.get('tag', '')
    r=[tag]
    v= es.searchBytag(r)
    jv=json.dumps(v)
    return jv;
if __name__ == '__main__':
    app.run(host='0.0.0.0',debug=True)